package org.JWCB.system.domain.question.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.JWCB.common.security.valid.innotation.AllowedValues;

import java.util.List;


@Getter
@Setter
@ToString
public class QuestionAddDto {

    @NotNull(message = "标题不能为空")
    private String title;


    @AllowedValues(value = {"1","2","3"},canNull = false)
    @NotNull(message = "难度不能为空")
    private Integer difficulty;

    private Long timeLimit;

    private Long spaceLimit;

    @NotNull(message = "题目内容不能为空")
    private String content;


    @NotNull(message = "用例不能为空")
    private String questionCase;

    @NotNull(message = "默认代码块不能为空")
    private String defaultCode;

    @NotNull(message = "main方法不能为空")
    private String mainFunc;

    
    private List<Integer> questionTagCodes;
}
